Fix image buffer inheritance

Targets #493 (partly).