Try this:
PHP Code: 
<?php if ( is_single() ) { ?>
    <div class="navigation" style="border-top:0;">
        <div class="alignleft"><?php previous_post_link('%link','<img src="previouspost.png" />'); ?></div>
        <div class="alignright"><?php next_post_link('%link','<img src="nextpost.png" />'); ?></div>
        <div style="clear:both;"></div>
    </div>
<?php } else { ?>
    <?php if ( function_exists('wp_pagenavi') ) { ?>
        <?php wp_pagenavi(); ?>
    <?php } else { ?>
        <div class="navigation">
            <?php posts_nav_link('''<img src="previouspost.png" />''<img src="nextpost.png" />'); ?>
        </div>
    <?php ?>
<?php 
?>
I am not sure which cms is that! It may work assuming previous_post_link & next_post_link are functions which automatically binds next page link