Add check to util.PadArray for output shape smaller than image.
Add check to util.PadArray for output shape smaller than image.

mthomure/glimpse-project,mthomure/glimpse-project,mthomure/glimpse-project