In Australia go to a Post Office for the photo ($16.95), just make sure they use a digital camera and not the old Polaroid.
There are very few that still use the Polaroid but worth checking. Photo takes 2 or 3 minutes to produce.
If you are going to renew in Australia you can print a renewal form on line
www.passports.gov.au just make sure you print the form single sided, A4 and that no text is missing on the form. Current fee is AUD $238 for a regular 32 page or $358 for a 64 page frequent (AFF?

) traveller passport plus $105 if you want priority issue. If you renew o/s I am not sure if form is different.