Re-size any image to a particular factor. Automatically calculates scaling factor for height or width input.