Script to migrate images