Remove compiler warnings
Add JPEG loading