Decouple file name from ninepatch config and refactor
Refactor class names and structure
Refactor main method