fix #1550 npe image helper.get image size

fix #1550 npe image helper.get image size
:facepalm: fixed in 87ad1c5afad4105071541df796c3c7bd2e6a6cdd