fix quantization table value wraparound
add RLE block copy function