Modules

Work out new dimensions for an image (or just a rectangle) when restricted in one dimension.