Scales template images to the standard max edge of 512.