Actually, the Brownian Motion paper concerned the increasingly popular atomic theory, not photons. The photoelectric effect paper used the notion of photons, but it wasn't new and Einstein didn't really believe that photons existed. And special relativity is different from those two entirely. And all those papers were published in the same year. The same year in which he defended his thesis.