1) Fix syntax error; 2) Prevent anamition when only 1 picture.

1) fix syntax error
There was a redundant “t” on line 140.

2) prevent anamition when only 1 picture
Just check length of thumbs.