Tidied up the image path to a single variable. Also added a new feature that if the image is smaller than the thumbnail it will just display.