add method OPTIONS to function create Photo