rename `bmp_out` to `bmp_dct` to reflect its use
add flip to flip iter[i], map, etc.