Adds the bit depth and color type check.