1. A method for processing a pixel block, comprising: using a processor to perform the following: receiving data related to at least one previously captured image line, the data differing from the at least one previously captured image line; receiving at least one captured pixel, the at least one captured pixel belonging to at least one captured image line; and processing the at least one captured pixel and the data related to the at least one previously captured image line to obtain a processed block result, wherein the processing comprises performing JPEG compression, and wherein JPEG coefficients are determined by rotating previous JPEG coefficients, subtracting a normalized value of an outdated pixel, and adding a normalized value of the at least one captured pixel.