Gen autotiles

Autotiles (reject request)

Just showing, there is another easier way to do it using flags.

Dont acept this pull request since it contains privative basis.png
It has over a year since i wrote it and don't hace a clone in a linux distro to remove these files.