This border color and thickness detection script is designed to detect image borders of a single color value by searching the image column by column for x axis searches and row by row for y axis searches. A range of pixels (`border_range_x/y`) is defined to set the maximum search range; the images are all 512x512. The script also determines the border thickness by breaking the loop upon detecting a second color and returning the amount of columns and rows searched as pixel values (`x/y_border_width`), e.g. an image with 100px black side borders and no top borders should print the following:
First detected x color: (0, 0, 0), x_border_width: 100
First detected y color: (#, #, #), y_border_width: 0

The problem is that the `print_to_console()` function isn't applying this logic to x axis searches that have multiple colors in the first column, or to y axis searches that have multiple colors in the first row, causing the searches to continue up to the end of the range (250px, in this case). The only change I want to make is for the `print_to_console()` function to break the loop consistently upon detecting a second color value. 
Below are the print statements for two pillarboxed test images and two letterboxed test images; in y axis searches, the `border_width_y` value should be 0 for all pillarboxed images, as the top and bottom pixel rows have multiple color values; and the `border_width_x` value should be 0 for all letterboxed images since these images have multiple colors in their first columns for x axis searc