changed type look up for browser compatibility when uint8clamped not present