Trying to loop through all pixels in a bmp with arduino

I'd suggest you to at least quickly check the BMP and JPEG formats...