use pil to find working imagetypes