I found a bug in author_image_tag() method where if you set the display mode to return (so you get the author image returned rather than displayed) it never returns anything. If anyone else gets the same issue use the profilepic_internal_imagetag() method instead using the same parameters and it will return correctly.