experiments for cutting images before scanning

still wip and non functional