Adapted demos to new image API.