How can I add a link to the following line?

```
if ($image) echo $image->resize('w=272&h=170');

```

I have tried adding something like 

```
if ($image) echo '<a href="'.get_the_permalink().'">'$image->resize('w=272&h=170')'</a>';

```