set caption bg color and opacity