are you sure bgImage returns URL? I tried all the queries I can think of and always get base64.