fixed bug with cancel save image