(refs #12) Implemented the process of saving image.