Bug 915001 - save edited images using tiles and display a progress bar

address review comments

fix rounding error
Merge pull request #13300 from davidflanagan/bug915001hd

Bug 915001 - save edited images using tiles and display a progress bar r=hshih