[Image Box] Improved exception message while null sizes

Improved exception message when null sizes are provided as width or height.