Fixing imageexists migration