extracted the embedded example image code out of the core library and updated all examples to include it