Added support for distant images.