Added extra checks to ocl::Image2D