Finishes off images and rewrite