func for animation and single images both for polar and decart modes.
functions are large, but i've commented all and now i think it's ok for
understanding.
check it