I tried this and nothing helped. Even if I copied the file to an unsynced folder it still deleted both the original and the copy. You should store the image outside the phone and then later transfer it back to the phone.
If you run out of photos space it is better just to compress the images.