created a layout for viewing picture