dovresti scrivere sulla foto utilizzando uno script lato server...

In questo modo anche salvando l'immagine la scritta rimarrà.