prevent the imageProcessedModal from opening twice