BUG: only do composite map if KEEP_TMP_IMAGES = 1