added support of picturefill
remove picturefill, added imagesloaded to gallery
added imagesLoaded to page
added prev next links
Global refactoring