Added cubemap support, fixed non-virtual Texture constructor