nextgen gallery: how to get picture url by gallery id

After analyzing nextgen core files I have found solution to my problem. I hope it will be useful for somebody.

global $nggdb;

$get_gall_id = get_post_meta($post_id, 'galerijos_id', true);
$gall_ids = $nggdb->get_ids_from_gallery($get_gall_id);
$images = $nggdb->get_gallery($get_gall_id);

foreach ( $gall_ids as $gall_id ) {
echo $images[$gall_id]->imageURL .'<br>';
}