update bg manager and add bg_image and bg_video