creating an image and showing it on a page