Implement Bit Depth Conversion