Fix issue where pixels where saved on all boards previously open due to addEventListener on document instead of canvas