Update migrate_t4_user_icons to check if a file is an image