Optimize display of pasted/dropped images

Re-use data URI instead of having to load (duplicate) image data from
the server.