Update WhiteRectangleDetector.java

Changed image-only version of the constructor to calculate an appropriate initSize based on the image dimensions.