Polymer induced aggregation of dye molecules