Fixed a bug with AJAX requests for older images.