edited picture function