uploadImage: exit with status code 1 if image does not exist, newPost: call uploadImage to automate things