I have an 2d array consists of boolean values. For mode of fromarray both mode=\'1\' and mode=\'L\' not working properly. Both of them returns an black image while it also s