Outsourced SpriteWidget implementation to spritewidget.cpp.