Ejected the warp core! Final fix, the q_g array was initialized with the wrong image size. Superresolution is running now for all images with correct results