change sprite draw function