Added more code to visualize photos.