Added check for minimum texture size, scale up to 8x8 if smaller.