switch to pillow and localflavor libs