[WIP] Picture upload

WIP pull request, not to be merged just yet.