aspect ratio resizing

My initial modification to not re-size if the image is smaller than the maximum dimensions settings.  I also made changes to detect every image size variation so it re-sizes using the image aspect ratio.  This means no white space is created, which I think is the way it should be when re-sizing the image.  Brief discussion on the forum http://forum.lemonstand.com/topic/2467-image-dimensions/