fixing setting of max length L fo rimage plots