imageDimensions

Extension to extract image dimensions from a shape given a layout.