Now showing images from Sharepoint.
and some refactoring.