Added function to draw sprite