Don't allow image output and definition input to be the same name

Created by: AdamSimpson