Try to display a malformed image if feasible
Differential Revision: https://phabricator.kde.org/D8415