Convert background image to data uri