Fix for transform_flatfields and keyword args.

[1537]