Added frame_count and packet_count for logging. Added flush to photo_log, which still does not update live.