BUG-0001 Exception when user selects a rectangle which is greater than the image