add save image support.