syntax
fixing image opening, reducing sample size of pixels for memory saving