Implement draw sprite function based on sprite sheet image