fixed upload counter when pasting images