Fix Raster#getAverageColor by having Path#draw clip the context, when param.clip is true.