Add before image parts.

We should also save before image as well as after image.