wrote rings to image
worked on etaphi algo