One cannot be a nαzι and a Catholic, nαzι's are socialists, socialists are athiests, furthermore nαzι's believe in the occult and base many of their beliefs on the belief of evolution. These are contrary to dogmatic truths.
Obviously this is not that easy. nαzι Germany had a concordat with the Holy See and was therefore (formally) more closely united to the Church than most other nations.
Mit brennender Sorge does also not contain a formal condemnation of National Socialism, it does not even contain the word, while
Divini Redemptoris speaks in an entirely different language of Communism.
Also, there were many different factions inside National Socialism, too. You have characters like the monarchical, conservative and Catholic
von Papen, but also people like the very anti-Catholic and strongly leftist
Rosenberg.As religious worship was not forbidden, a big part of the German population was Catholic, there was some kind of working together with the State (which continues till today)...well, thats how you get those photos.
And in any case, nobody is forbidden to pray, may he be a Communist, Capitalist, or nαzι.