bug fix for boolean types in _assemble_image, fixes #29