Add post.rb for uploading images to the server