Add background option to the preview task