These should probably try to scale the object proportionally. Like if the requested size is (20, 20), and someone wants to know the optimalWidth for a height of 10, this should return 10.