#edit book: [Joe & Haidong Zhang] - modify save image function