fixed error that caused bitmap data to be compared bytewise instead of bitwise