Fix unsupported getSprite() method.