DICOM: fix byte skipping for >8 bit data

As noted in the comments, this adjusts the byte skipping as needed to
ensure that each plane has the correct number of decompressed bytes.

Fixes #12624.
Merge pull request #1440 from melissalinkert/12624

DICOM: fix byte skipping for >8 bit data