Cancel the image download when pressing the done button, fix a case where the image viewer could leave the views in a bad state when entering the background