add CLI arg to enable debug logging
begin porting nimspng