test script
revised: add margins for the highlight frame in any case
revised: getting parts of a region or an image based on a raster overlay of even rows, columns or cells