added ajax functionality for image show page