Fix bug when plotting overlays on images with 3+ WCS dimensions