Some jslint fixes; renames mh to maxh; handling resizing photos with max and min dimensions.