add units support to detector pixel size