Memory jpeg output fix
Merge pull request #1 from zelll/dev

Memory jpeg output fix