added null check in currentPageImg