Implementing texture-atlas