Fix AutoProcessor import order issue with custom classes
When initializing via AutoImageProcessor before AutoProcessor is imported,
an AttributeError could occur if the model used custom processor classes.
This fix allows custom classes to be loaded from the config object.