Move code between files of same package.

All code to upload an image was placed in request.go, but I found that
it made more sense to place it in image.go.