Added ability to check for images.