Added code that is believed to give correct bits per pixel of a pixel format. Refs #119 @ 30m