Rank based Approach for Extracting Unit Pixel Width Skeleton