1. A computer-based method comprising: detecting a point in image processing code where pixel processing of an image diverges into at least two distinct operation paths; grouping pixels of the image into a plurality of subsets based at least upon the at least two distinct operation paths, the plurality of subsets including: a first subset comprising multiple first pixels processed by a first distinct operation path in the image processing code, and a second subset comprising multiple second pixels processed by a second distinct operation path in the image processing code; batching individual first pixels of the first subset into batched first units of data; and processing the first subset in parallel using a first processing operation on the batched first units of data to generate corresponding first pixel values of the image.