Encapsulation and diffraction-pattern-correction methods to reduce the effect of damage in x-ray diffraction imaging of single biological molecules.