Sorting out images
work on the gui