Save log screenshots with correct file extension

If no encoder is specified, PNG is used.