BUG: workaround degenerate direction matrix

FDF files seem to have 3D rotation matrices even
if the image is 2D. This can give them degenerate
directions cosines.  If that's the case punt and
use identity direction cosines.