script to build the image