Re-implemented the check/conversion of textures to base2.