changed image storing protocol