Implement selection rectangle