fix #1550 npe image helper.get image size

fix #1550 npe image helper.get image size
fixed in ed431589a65e0cc56e86df6b1c7d8e1c44147d4d