fixed null image url issue. Able to get images now and fixed index