Fix editing of images