Fix typo that caused incorrect IB::copy_pixels of mixed type.

Fixes #688