updated sprite class