changed dither matrices to 2d arrays