Working on each image source dpi having its own grid rectangle