Firefighters battle blazes as wildfires rage through rainforest