Fixed odd demo scenario that loads a layered image with a nil decoder, improved format and location of populateFromImage.
Merge pull request #125 from dgileadi/1.x

Fixed the demo issue mentioned in pull #124.