updating AJAX callback function
updating AJAX callback function
updating with JSON for images