There are several sites out there that show how to DIY styrofome backgrounds. Most I've seen end up using concrete with dyes to coat it and make it look like natural rock. It's a fairly common thing to do, and you simply use aquarium safe silicone to glue it to the back. You do need to make sure the back glass is very clean and free from greese, or any chemicals, then liberally apply silicone to the styrofome where it will be placed against the wall. Most of these sites also talk about making a complete seal with the silicone. Don't let water get behind the styrofome. I suppose this is partially to keep the styrofome from breaking free and floating, and partially to keep water from becoming stagnant and fouling up your water quality. I'd be safe and coat the entire surface against the glass. I plan to do something like this myself in the near future.