images: moving image generation out of make files