Resize image to fit text