avoid exception when the icon size or the mask size is incorrect