recursively try to get machine image ID in case node was created from snapshot
include preconditions