fixed canvas size, if canvas size is increased, then the selection code will break