fixed bug caused by false type of image (file reference instead of array) on update