move show_pict_info() to its own function