changed to using pillow for image processing
implemented most of the function that places a given barcode and its
position on a template
code cleanup and minor adjustments