use localStorage to save temp imageData so that we can verify the upload was successful before adding preview to the DOM