So your pictured light fitting is not the one you are going to fit ?
I don't really follow your info re the bedside lamp being used to establish the switched live is black ??
I suspect the 2 black wires are neutrals and the red wire is the switched live,but you would need testing equipment to...