fixes header write by individualizing
HALLELUJAH! finally a valid BMP is printing. colors are WAY off though. I think it's row%4 padding. simplified main debug info.