you could make the $team = the address of the file you are trying to print then give the command
print (<tr><td><img src=teams\$team></td></tr>);
please let me know if the solution works and be warned i'm not sure if it will also i don't know how to get it to put $team in as Adelaide Crows but if you look up the syntax i know its possible. good luck