Fix migration script skips every second image