Fixed the pixels not being copied correctly, as well as values that use the sign bit in 8-bit integers being read as negative