Add logging, attachImage, examples