Refactoring to save new pictures in database
Configuring root as a pictures#index