Fixed CL_MEM_TYPE query for image objects.