add loading of images using rest