Removed adding a rect via a right mouse button click. restricted the selectable area to the area where the preview image is displayed.