Resized the image to be the same size of template.