Update migrate.py to fix issues with SVG files