Added scale texture by mipmip function.