adjusted mouse selection of shapes to compensate for rotation