$('#annonce_photo_<%= @annonce_photo.id %>').replaceWith("<%= escape_javascript(render(@annonce_photo))%>");