Use custom field to assign content well background

Can I write a plugin that will give me the ability to upload a photo and assign it to .wrap or .content? We’ll see. The beginning of the idea is here on this post.