Make only one site length required, so that images can be resized based on height, too.
Changed behaviour for resizing an image to a larger one or to the exact measure it already has