Scaling, colorspace conversion, and dithering library