switched back to the proper type for 8-bit pixel values