fixed image imports to work with pillow (PIL replacement)