Fix a bug with full image url in templates.
Add Tests for create_pin from uploaded file.