Implement ResourceMgr, png/jpeg loader, CreateTexture builtin