optimizate the raster for convex