Is that sand and pebbles in the last pic?

I think if it were me I would take the foam background out and scrub the tank with CLR or the like. Hose it out and then get new foam inserts.