uh, just manually put every R G and B value in a bank? But you need your own bound-checks ofcourse.. unless you're sure you never break out of your typical for x for y loop. I use something similar for my private texture-generator.. all actions done in banks..
banksize = imagewidth*imageheight*3
banksize = imagewidth*imageheight*3