image data saved before alert