adds fallback in open_image for PIL support