Added delete image and a link on each image. Also cleaned up the code and fixed mis-spellings.