Fixed odd demo scenario that loads a layered image with a nil decoder, improved format and location of populateFromImage.