try to fix location editing for images