fixed bug where editting image url didn't save image