add support for jpeg in heightmap