first step of dynamically generating background tiles based on window size