separate result logging and picture generating
LR part done