Fixed unhandled case where config.X_res == config.Y_res in plotting invivo...and in general.