An Improved One-Pass Parallel Algorithm for Thinning Binary Patterns