Added support for passing a binary image string to decode