fix size of photo