Pimage fixes and example