i think your best option is to go with a switch statement...
PHP Code:
if ( $option == "com_frontpage" ) {
include ('some_pic.gif');
}
if ( $option == "com_content" ) {
include ('some_pic.gif');
}
else {
include ('some_pic.gif');
}
// and so on....
or you could use echo instead of include
just replace the img source with the switch.. and it should work...
or make a function of the whole thing and so it that way..
possibilities are endless