Segfault in idg-api when image_size < subgrid_size

idg-api segfaults when the size of the image is smaller than the subgrid size. This is an unusual scenario of little practical value, but should nevertheless not result in a segfault

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information