UniFed: A Unified Framework for Federated Learning on Non-IID Image Features