implemented loading of images