Log images on the jevois.

This could fill up the sd card if we don't clean it periodically,
(~10000 images).

We should come up with a method/philosophy on cleaning it before merging
this in.

Change-Id: I5bd78d7a984f6e50352b8804a0c5e4f0a1d11e68
diff --git a/y2019/vision/BUILD b/y2019/vision/BUILD
index 5cfc52b..e19c8cd 100644
--- a/y2019/vision/BUILD
+++ b/y2019/vision/BUILD
@@ -34,6 +34,13 @@
     tools = [":constants_formatting"],
 )
 
+cc_library(
+    name = "image_writer",
+    srcs = ["image_writer.cc"],
+    hdrs = ["image_writer.h"],
+    deps = ["//aos/vision/image:image_types"],
+)
+
 sh_test(
     name = "constants_formatting_test",
     srcs = ["constants_formatting_test.sh"],
@@ -91,6 +98,7 @@
     srcs = ["target_sender.cc"],
     restricted_to = VISION_TARGETS,
     deps = [
+        ":image_writer",
         ":target_finder",
         "//aos/logging",
         "//aos/logging:implementations",