Influence of the substrate/photo-active solution interaction in patterning and adhesion of photo-deposited films