fix issue #12192 to return error message if show_image hit error
Merge pull request #12516 from crook/12192-fix

fix issue #12192 to return error message if show_image hit error