pack backgrounds into textures