Will now store samples in PGM format.
When opening images in a folder, we must always open the first image.
Directory creation is in the path extraction algorithm.