Cameras had been around long before photography. They just could not effectively preserve the image until the development of the daguerreotype process in 1836. So, I guess one could say that photography and railroads development paralleled each other.