Basically, I want to find the outer rectangle of the following image. My idea is to crop image by rectangle so that I could remove bigger lines which are outside of rectangl