Classes

Calculate new image dimensions.