glsl: use is_image() anywhere it's possible