fix for copied/pasted images where urls are corrupted on save by query string