Added case to view images when clicked