updated image2d to use new clang frontend (sampler_t, image2d_t)