tried to optimize expensive loops
increased dither bleed slightly