Extracted plugin registry to avoid prblems due to ambiguous import (Image vs PIL.Image)