Add Sprite::getPreferredSize(), a utility that pretty much anything that does layouts will be interested in.