JP2: fix resolution detection