fixed bug where I had the results of the ternary operator in the wrong order making the splitPatients page think there was either too many or not enough pictures