JImage::prepareDimensions

Method to get the new dimensions for a resized image.