Fatal error: Cannot redeclare get_header_image() (previously declared in [closed]

The error message is pretty clear in this case.

You can’t have two functions with the same name.

WordPress already has function called get_header_image, so you can’t call your custom function with this name.

That’s why it’s a good idea to add prefixes to functions you declare in your theme. So instead get_header_image you call your custom function MYTHEME_get_header_image (of course replace MYTHEME with name of your theme).