Added resetRect function to Sprite