remove non-jpeg formats