<?php if(!isset($image)): ?>
<?php $image = 'edit'?>
<?php endif?>

<?php if(!isset($tool)): ?>
<?php $tool  = 'Editar'?>
<?php endif?>

<?php if(!isset($return)): ?>
<?php echo image_tag($image,array('title' => $tool))?>
<?php else: ?>
<?php echo link_to(image_tag($image,array('title' => $tool)),$return, array('post'=>true))?>
<?php endif ?>