Also, you will have to calculate the offset and rim width to be sure the new rims won't rub anywhere. There are a bunch of wheel offset calculators on the internet. 1010tires.com has one that is easy to use.
Of consideration is the wheel itself rubbing a suspension or brake component, or the tire rubbing something. If you go with a factory standard tire size you don't have to add to the complexity of calculations. If you go to a larger tire you get into unknown territory (and thus the threads on this forum about what fits without rubbing).
A smaller offset sticks out more, and is probably ok. A larger offset sits further inside the wheel well, and thus might rub suspension or other parts. How much you can get away with is a good question, but one could guess you have 1/2" based on the factory options (some Subaru wheels are 7.5" or 8" wide). But even that is just a guess, because the tire width is important too, not just the metal wheel itself.
I would guess but not guarantee that you have a good inch to mess with by going to a bigger offset. Realize that this larger offset will sit further inside the wheel well, so from an appearance standpoint you may want to minimize how much bigger your offset is if you're using a Subaru tire size.
25mm to an inch.
It looks like your OEM 17" rim is a 7" width. If you get a 7" wide wheel, within 13mm on the offset and you should remain within the envelope of factory option wheels and tires. The original spec is 48mm on a 7" wide rim, so you could go maybe an offset as large as 61mm on a 7" wide wheel without rubbing something on the inside of the wheel well.
If you choose a 7.5" wide wheel, I would try to not go much above the factory offset of 48. You could in theory go up to about 54mm offset on the 7.5" wide rim and be ok.
When you go to a wider rim, the tire will still be the same width at the tread, just the wheel will be wider. But the offset is based on the center of the wheel. Thus for the same offset, if you go to a 7.5" wheel instead of the 7" wheel, the inside of the wheel is 1/4" further into the wheel well and the outside of the wheel sticks out 1/4" further. So when you calculate offset you have to bounce it against the wheel width, too.
Going down in offset with the same size tire should be safe. Go too far and the wheels will stick out and look goofy.
I went with 17x7.5 wheels with 10mm less offset than OEM. 10mm is just a bit under 1/2". So the tire sits about 1/2" further out. The outer edge of the rim sits about 3/4" further out, and the inner edge of the rim sits about 1/4" further out. So, no threat of rubbing suspension or wheel well.
So, bottom line to this mess of numbers: You can safely go to a smaller offset (assuming you are using a tire size within Subaru's specs). It will stick out a bit more but shouldn't rub anything. Something in the range of 35mm offset will give you around 1/2" to 3/4" sticking further out, which from an appearance standpoint will look beefier but not stupid. 35mm to 48mm would be the range I would be looking at.
If you go larger on offset, you have to worry about rubbing something inside the wheel well. In a 17x7 wheel I think you are ok up to 61mm. In a 17x7.5 wheel you are probably ok up to about 54mm. But I would try to avoid offsets larger than 50mm just for appearances.