changed script to generate smaller image