Increased speed of Image Encoder