check if vm image exists before using it