for Image processing lib, added single vector save for black and white images