Commented out apply_rotation because it doesn't work well with my cache importer