validate width*height doesn't overflow in image file am: 242a925a11

Change-Id: I8101563da94ce456ac5ca7b5ff3d488bdb53c73d