Algorithmic Guarantees for Inverse Imaging with Untrained Network Priors