fixed imageCreateFromLazyByteString, peek from CString with specified length,
to avoid recognizing zeroes in data as NULL-termination in string