Calculate out of a width, height or both new dimensions of an image while keeping the aspect ratio.