Hi @erni41
The image field will always save the value as an attachment ID. If you change the return type, ACF will continue to load the correct image and return the data type you select in the field’s settings.
Your code will need to respond to this format.
Thanks
E