I’ve found out an easy solution to resizing issue, may not be the better but it works ok.
Around the <?php getImage('1'); ?>
code put a div with class “thumbnail” (the class may be anything you want really…). You get the following code:
<div class="thumbnail">
<?php getImage('1'); ?>
</div>
Then go to the style sheet (style.css) and add the specifications you want on the img element, with class “thumbnail”.
Example:
.thumbnail img{
width: 30%;
height: 30%;
}
This example will make the image to appear at the 30% of its original size.
With this technique you can format the image as much as you want, and apply different formats just creating new classes in the style sheet.
I hope you find it useful!