fix structure of image table
finishing migration of images