Now the sprite update the frame in a better way