correct uid, and enable JPEG 2000 detection