fix RGB16 color components 8bit value calculation

This should fix https://github.com/koreader/koreader/issues/1040 to some degree