adding support to 3d images in GLSL