Fixed image upload and modification