Make overal abtraction of the distribute_image