Added instance types and image looping
Added code to terminate instances