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