Do bounds checking on image access