Try this mod. I wasn't able to duplicate this problem (because my pictures are small enough to not have to scroll) but this might help.
This will create an anchor tag named
<a name="picture" id="picture" />
just above the image on displayimage.php
displayimage.php
FIND:
$next_tgt = "$PHP_SELF?album=$album$cat_link&pos=$next";
Change to:
$next_tgt = "$PHP_SELF?album=$album$cat_link&pos=$next#picture";
FIND:
$prev_tgt = "$PHP_SELF?album=$album$cat_link&pos=$prev";
Change to:
$prev_tgt = "$PHP_SELF?album=$album$cat_link&pos=$prev#picture";
FIND:
function html_picture_menu($id)
{
global $lang_display_image_php;
return <<<EOT
<a href="#" onClick="return MM_openBrWindow('picEditor.php?id=$id','Crop_Picture','scrollbars=yes,toolbar=no,status=yes,resizable=yes')" class="admin_menu" >{$lang_display_image_php['crop_pic']}</a> <a href="editOnePic.php?id=$id&what=picture" class="admin_menu">{$lang_display_image_php['edit_pic']}</a> <a href="delete.php?id=$id&what=picture" class="admin_menu" onclick="return confirm('{$lang_display_image_php['confirm_del']}'); return false; ">{$lang_display_image_php['del_pic']}</a>
EOT;
}
Change to:
function html_picture_menu($id)
{
global $lang_display_image_php;
return <<<EOT
<a name="picture" id="picture" />
<a href="#" onClick="return MM_openBrWindow('picEditor.php?id=$id','Crop_Picture','scrollbars=yes,toolbar=no,status=yes,resizable=yes')" class="admin_menu" >{$lang_display_image_php['crop_pic']}</a> <a href="editOnePic.php?id=$id&what=picture" class="admin_menu">{$lang_display_image_php['edit_pic']}</a> <a href="delete.php?id=$id&what=picture" class="admin_menu" onclick="return confirm('{$lang_display_image_php['confirm_del']}'); return false; ">{$lang_display_image_php['del_pic']}</a>
EOT;
}