Initial implementation of ImageDnd, InsertImage bugfixes, architectural
changes.