added rotate method to BWImage and added third pixel character for insignificant pixels