Optimize image buffer usage, modify examples.