skip non-jpegs