rearrage some image d3 stuff