fix set image no data, fixes #8773