Slight redesign of texture import to reduce duplicated code