Fixed dynamic image loading

Loading after the initial pageload had not worked due to restructuring.
It works now.