Fixed sprite class draw code