Fill the image parameters in the template