Improve scaling of text across images of different resolutions

This patch adjusts the text size range so it is proportional to the image dimensions rather than being fixed in pixels.  This assures an appropriate text size range for all images, no matter the resolution, and makes clicking through the gallery look nicer, as the apparent size of the text doesn't change drastically from image to image.

DO IT MICHAEL.  DO IT.