add on before save screen shot event