Added ability to load image from string