optional fill black space between dedectors and optional source porfile are added.