This question has been answered by goldsky. See the first response.
I've fixed it in here https://github.com/goldsky/Easy-2-Gallery/commit/2b7fc12747cff1edc01cdebf2a960babf0035ccd#L14R672
Just download the source from https://github.com/goldsky/Easy-2-Gallery