The default item.php has already some code to hide/show the print button regarding the mode. Taking a look at this code will make it easy to do something like that for the image. In any case remember to make a template override and not modify the existing one.