sprite: refactor to integrate drawing partial image.