Decreased sleep time, overwite log file, only save imgs in debug mode