added a work around for images with shape (0,0,ny,nx).
I wish people would stop making fits files with stupid dimensions.