revamp so that the rendering can display all images