A couple of fixes,

- Fix missing `type` from png/jpeg check
- Don't resize on weird chr(13) stand alone stream msgs