Refactoring - add flagsConverter, fix generatign of thumb name