Handle non-jpeg file extensions