Better code for making canvas flush w window top left