Move PNG generation library code into the ./shield package and remove autodetection of dataDir

This PR makes it possible to use buckler as a library.