Add data-bg to element