The ontology of perception: agency, evolution and representationalism