Refactoring texture import into separate function by type of texture and
block type.