Added somewhat functioning drawing and controlling of a selection rectangle