dynamic filename passed as input to dilate call