simplify boundary collisions between selection and canvas; prevent redraw flicker by performing this check prior to drawing selection, rather than after
correct typo/bug in canvas height check; do not check boundaries when setting minimum size