add support for loading images using ajax