fast scaling/cached scaling, 8bit color, custom grey scale color map, resizing. TODO fix resize wrapping issues