Try really hard to load reference image files
Sometimes Qt just refuses to use the .kra or .ora qimageio plugin, for unknown reasons, even if they are present, so fall back on our own image loading code.
BUG:422422