Correction in Texture3D for loading 4D arrays.

Fixed bug in prepare_volume method to load 4D (rgb, rgba) data.