prevent a crash if the image was deleted from the device since it was displayed.