adapted to the ij3d plugin