added support to drag/drop images