add unittest for jpg, only activated if PIL/Pillow is installed