How to set hosted images using custom fields