fix #1201: fix image helper npe

fix #1201: fix image helper npe