backfire: ImageBuilder: respect the PROFILE parameter (backport of r29877)