add support for jpeg textures