Selecting 2D graphical elements