png: Avoid overflow when determining the size of constrained images.

Closes-bug: lp-1036195

Signed-off-by: Bert Timmerman <bert.timmerman@xs4all.nl>
Make the PNG HID exporter extent sizes aware.

Signed-off-by: Bert Timmerman <bert.timmerman@xs4all.nl>