Robust computational imaging algorithms for inverse problems with coherent X-rays