master trains slave-bilder