Fix about image read accessor stuff for g++ 4.8 and VS compilers