added preview on image click