implemented ajax loading of images