Fixed authorization problem on image upload