Code for creating "photobooth"-like image strips based on four sequential images taken in a row