Does not add images with zskip class to the gallery

* Use case: the gallery has to show up by clicking on any image but the same image is on the page multiple times.

* Current behavior: the same image appears in the gallery multiple times.

* Desired behavior: all images appear only once.

By adding class="zskip" to an image, clicking on it will make the gallery show up but this image won't be in the gallery.