If you write something, at least put the error output.
PHP tells you that there is no image element, and that the constant v3 is unknown to him. But you can't hear him. And it would clearly tell you in what direction to dig. And would come with specific question "how to handle the image element is v3?", instead.