Issue #14813: Fix ZDI-CAN-27836
This patch attempts to resolve #14813 (closed)
This patch increases the row_size data type to gsize and checks if it would overflow based on the width given. It also makes sure the image size does not exceed GIMP's image size limits.