Modules

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