Improvements in loader class and new JPG loader class.

Hi there,

we've had some issues with your JPG code. We've rewritten the loader to be more compatible and safe.
We've also changed the default buffer size from 1024 to 4096 as it's possible that the SOF tags are outside of the 1024 bytes.