Fixed method execution - now rectangle is being filled not only if gravity center's line is its diagonal, but also if any point of the line is inside of the rectangle