added basic drag and drop image functionality