Fixed bugs in image uploading code.
Added image to Post.