was created as a foil to
1. Does "AIZ was created as a foil to bourgeois magazines such as Berliner Illustrierte" mean:
a. AIZ was in contrast to bourgeois magazines such as Berliner Illustrierte
or
b. AIZ provided a useful background and condition for the appearance of bourgeois magazines such as Berliner Illustrierte?
2. Does "with the intention of" refer to "AIZ" or "magazines such as Berliner Illustrierte"?
Context:
Owen notes, AIZ was created as a foil to bourgeois magazines such as Berliner Illustrierte with the intention of producing a photomagazine that would provide relevant images for the working, rather than middle, classes.