adding single image viewer and bug fixed the image padding