fix #1550 npe image helper.get image size

fix #1550 npe image helper.get image size