Algorithmic Guarantees for Inverse Imaging with Untrained Neural Network Priors