We only ever see Ryan taking one photograph of the young Mr. Smith out of the file folder to show Beckett, yet the photo we see Ryan taking out of the folder and the photo we see Castle and Beckett discussing moments later are not the same photo. The two photos used are of different men with very different hair styles in similar clothing and similar but opposite poses. The man in the picture Ryan pulls from the file is facing left (right side towards the camera) and holding a wine glass in his right hand, while in the other picture, the man is facing right (left side towards the camera) and is holding a champagne flute in his left hand.
When Det Ryan is showing Capt Gates the photo that is missing from Montgomery's wedding album the photo in question is clearly in a horizontal aspect as you can see the tabs from where the photo was once held. However later when Det Ryan show Det Beckett and Castle the photo of Michael Smith it's now in a vertical aspect.
When Esposito ran the account number in the banking database, the header for the "Searching database" dialog box says "Image viewer"