Add callbacks for dialog cancel

Adds progress callback for ImageService.addFile.
Add cancelled flag for dialog
Add call to ImageService.deleteFile on cancelled in Image.