Fix drawing when mouse moves off of canvas