a new try except for PIL import