core : remove image -  if clause order

change if clause order to avoid funcionality change, will be revisited in
a further patch.

Change-Id: I643b2ab944adb21f05328e8081d3b0b3f9e2c2cc
Signed-off-by: Liron Aravot <laravot@redhat.com>