add browser detection to avoid safari bug in setDragImage