Log some errors and allow .jpeg