Prevent overriding $img variable

imagesLoaded returns an instance, not what we need here
Replace imageFill() with imagefill()
Merge pull request #1 from tombeynon/master

Bug fix and documentation correction