Update rails & delete photo