Added function to calculate distance from the edge
Added functions to generate columns for blob data