Added support for loading images from phar file.