updated method of texture applying
reduced memory usage for texture preparing (removed one step - flipping image)