Some poor images for a demo. And fixed handling of the foreground image.