cleaned up code a bit, created new safe function for loading images to grayscale
   removed main.hs