fixes image dragging issue