Retrieving images from a NextGEN gallery

For anyone interested I found a solution to what I wanted.

You simply need to create a custom template

Then I accessed the images like this:

<?php foreach ($images as $image) : ?>
<?php echo do_shortcode('[singlepic id="' . $image->pid . '"]'); ?>
<?php endforeach; ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)