imagemagick-ruby186: Need old libpng. X11 optional

Simplify formula by removing now unused support methods.
Using `build.with?`.

Fixes #63 by adding optional `depends_on :x11`.
Fixes #10 by depending on old libpng12