Fix image migrate.