Make directories for different formats more flexible

Replace hard-coded 4x3 and 1x1 directory names with corresponding variables to be able to keep the directory structure more simple if you don't need different flag formats