Strip exif information from generated images.
Adds test for generated image.