Optimization of sending pictures