ImageDimension moved to its own class.