added functionality to add each new photo to the top of all others added before it