Your code should look like this :
<div style="text-align:center;" class="gallery-page" data-role="content">
<ul id="gallery" class="gallery" style="max-height: 75%;">
<li style="height: 120px; width: 93px; padding-bottom: 2px;"><a href="bigimage.aspx?QueryStringParms=blah rel="external"><img src="../Utilities/ImageHandler.ashx?QueryStringParms=blah" /></a></li></ul></div>
and then, in your bigimage.aspx file, you'd have some HTML (the CSS and javascript you may need) + an image tag :
<img src="../Utilities/ImageHandler.ashx?QueryStringParms=blah" />
I presume the querystring params indicate which image you want and the needed size