Added dynamic loading of images