Replace image check and flavor creation

Replace image check and flavor creation to
deployment tests class

Change-Id: I42c146467cd3fddade192ff6d47946c3f5d26558
Closes-bug: #1377035