Move redundant canvas selection out of event binding