image upload client aftermath logic fix.