Use parent image config in buildfile

Fixes #2021

ping @creack @vieux