get pixel values of b/w image and arrange by column