implemented drawing a simple select rect