Fix multiple rimerisha dither bugs and other misc fixes.