Fix ImageCache::get_pixels() for chbegin != 0 case.

The source data channel offset was being applied using the size of the destination datatype rather than from size of the source datatype.

Fixes #759.