Use single Resource type for loading file or memory, JPEG file load improvements
Got JPG/PNG loading from disk and from memory
Fix PNG header check
Fix linker warning