Added size function expressed in unit of the template size parameter
Added clone function for texture classes