script for sequential images and BIN commands