Add custom images. Define histogram function