refactored utils. from now on, only include code which is 1: often used in other yasqe/yasr, 2: complex enough to justify central location in this utils repo, 3: does not change often (i.e., no img specs)
1.4.0