Changed to ordered dithering instead of error diffusion dithering.

Changed to ordered dithering instead of error diffusion dithering. Fixed bug when creating main window.