Tool to generate 1bit image arrays for C from normal images