added ability to upload images and view images