Added support for loading images by binary string