fix logic upload image connecting with dedicated storage