I want to switch an image to another image every a few seconds on AMP.

I've tried it using `amp-script`, for example, changing its `src`, `backgroundImage`, or append a new `img` with higher `z-index` to hide previous image.

But all of them were failed and the console said:

> 
> [amp-script] amp-script[script="main"].js was terminated due to illegal mutation.
> 
> 
> 

or 

> 
> [amp-script] Sanitized [src]="./gallery1.jpeg": ...
> 
> 
> 

So, Is it possible to switch an image to another in AMP? If so, how?