Fixed so script does not exit if less than four images exist