Splitted TextureManager::create_image_texture() into multiple functions