./routes/pictures.js: Added local receive function.
Added some routes and moved functionality around.