Update mozjpeg and fix image type detection.