added image generation function w/ preprocessing, added images