Is it bad to do this?

**index.php**

`<img src = "image.php"/>`

**image.php**

```
header('location: /location/to/another/image.jpg');

```

You're probably looking at this thinking "why the hell does he want to do this". Above is just a simple scenario of what I'm doing, I just want to know if it's "acceptable" to do this?