Configuring root as pictures#index and also refactored form in new.html.erb