Set image src/alt during drag/drop uploading

Previously, the image src and alt attributes were only updated when
adding an image by selecting it. Now they are updated during drag/drop
as well.