Add dimension verification to texture constructors