Fixed potential error when resizing.  Fixes #254
Added Microsoft's JPEG XR to photo detection regex.