adjusting image dimensions for hats