Simple script to deflicker images taken for timelapses