Added support for drag/drop of images and fixed a Safari bug.