Best Sensor/Camera

Hi,
I would like to build my own camera (similar to compact camera as design) and I was wondering which is the newest and best in resolution supported by Arduino.

I have notice that for Rasberry there is 8MP Sony IMX219.

I would like to store just JPG file not RAW

Many thanks,
Matteo

Don't use an Arduino for this project. The Raspberry is a much better match. The Arduino simply doesn't have the computing resources needed to drive a camera. Although there are cameras that deliver pictures to an Arduino these solutions don't fit to be used as a photo camera.