Fixes image upload