change format of imports to allow use of Pillow PIL