Jpeg Decode memory leak fix. 

Fixes #205