Image formation using X-ray or electron crystallography can be considered a lens-less form of microscopy in which the far-field diffraction pattern of the object is measured, and the process of image formation is completed computationally. However, physical detectors only record the amplitude of scattered radiation, whereas both the amplitude and phase are needed to create an image. This is the crystallographic phase problem. In this paper we describe a novel and practical method of overcoming the phase problem for protein crystals. Protein crystals usually have high "solvent content", with more than 50% of the volume of a typical protein crystal being water. The solvent region is effectively featureless, and this provides a powerful constraint on the image. Our paper shows that this "solvent flatness" constraint, coupled with powerful optimization algorithms, can be used to overcome the phase problem. A correct image can be routinely formed direct from the diffraction data, when the solvent content of the crystals exceeds 70%