Load images from embedded files

Updated code following ox-it/moxie#60