Ensure image feature extractors outputs pixel values of shape (batch_size, n_channels, height, width)
Fixes #15055 #17526 

- center_crop in image_utils.py now can process numpy and torch images of shape (n_channels, height, width) and (height, width, n_channels), and returns cropped image of shape (n_channels, height, width).
- Fixed feature extractors that inherit from ImageFeatureExtractionMixin to always return numpy arrays or tensors of shape (batch_size, n_channels, height, width)
Hi, @alaradirik. Thank you for the (first) PR! I have a few suggestions here :-)

1. It would be great if we could have a more descriptive PR title.
2. Each PR should focus on a single issue.
    - **Unless** the issues are tightly coupled, and the changed really have to be done simultaneously otherwise things break.
    - (I didn't go through the changes in this PR though) 
3. If 2.) could be achieved, it's more likely easier to find a descriptive titles for each PR.

I don't mean that we should close this PR and open new ones, I will let the reviews to decide.
But if you are able to think of a good PR title, it would be very nice. Thank you.<|||||>The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_17620). All of your documentation changes will be reflected on that endpoint.<|||||>> Hi, @alaradirik. Thank you for the (first) PR! I have a few suggestions here :-)
> 
> 1. It would be great if we could have a more descriptive PR title.
> 2. Each PR should focus on a single issue.
>    
>    * **Unless** the issues are tightly coupled, and the changed really have to be done simultaneously otherwise things break.
>    * (I didn't go through the changes in this PR though)
> 3. If 2.) could be achieved, it's more likely easier to find a descriptive titles for each PR.
> 
> I don't mean that we should close this PR and open new ones, I will let the reviews to decide. But if you are able to think of a good PR title, it would be very nice. Thank you.


Thank you! I will keep these in mind in my next PR.<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.