changed the order of the image migration