major speed improvements and bug fixes
Merge branch 'master' of https://github.com/dvkch/SYGallery