fixed possible line lost during vertical bitmap shift
Use memset for writing black or white pixels