Fixed issue with backward navigation through images