Update sprite.cpp