dragging image file bugfix