Fix for bug #2582: image.module should use db_query_range(). Updated image_page() and _image_album_properties(). More SQL fixes.