try to load image config in FROM

Fixes #2021