Initial version of create_image_rest_api.sh