build: moving image generation out of makefile