Looking closer at what that stackoverflow answer is doing, it's similar to my solution, but is adding an img tag with 0 opacity for the sake of having an img tag there, but it doesn't remove the need to set the background-img