Text this: Optimal Dither and Noise Shaping in Image Processing