Add support for images with BitsAllocated equal to 12.

According to the standard, DICOM images are not allowed to have
BitsAllocated set to 12.  However, such files do exist in the wild,
so we might as well support them.  Eventually we'll have to support
one-bit overlays too.