fixed potential integer problem in image de-serialization (reported by HM)
Authored by: csoler 2015-06-29
Parent: [r8567]
Child: [r8569]