fixes migration import on install
fixes path images in media migration