Fix bits per image channel calculation.
Merge pull request #972 from JamieMason/master

Image optimization: Fix bits per image channel calculation.