Rail camera