block: in commit, determine base image from the top image