Fixing image upload and delete