Finds the right border of the given image. The returned value corresponds with the x-coordinate of the first non-empty column from the right side of the image or null if the image is completely empty.