improve image_processing speed