Fix a problem with images in ajax