Fixed wrong behavior when value is not an object due to no image selected
Fixed value accidentally being set when image is removed