An Effective Binary Image Thinning Algorithm