Fix some errors, require location before sending image to server.