change image properties in p