Move dotted_mode() from app to she module

Replaced a huge array of marching ant patterns (which was taken
from GIMP 1.3.11) with a simple formula.