dim edges and tweak parameters