fix #276 custom image Test case Issues

This commit fixes the custom image icon button test case issue.