IDEX-456: fix getting factory image