     for y in 0..<h / 8 {
         for x in 0..<w / 8 {
             let (r, g, b) = image.pixel(Int(x), Int(y))
-            var color = rgb(UInt8(r), UInt8(g), UInt8(b))
+            var color = rgb(r, g, b)
             drawPoint(x, y, &color)
         }
     }

}

func testImageRead() {
#if __APPLE__
    let imageFilepath = "/Users/david/GitLab/DO-CV/sara/data/sunflowerField.jpg"
#else
    let imageFilepath = "/home/david/GitLab/DO-CV/sara/data/sunflowerField.jpg"

}

func testVideoRead() {
#if os(macOS)
    let videoFilePath = "/Users/david/Desktop/Datasets/videos/sample10.mp4"
#else
    let videoFilePath = "/home/david/Desktop/Datasets/videos/sample10.mp4"
#endif
    let videoStream = VideoStream(filePath: videoFilePath)
    resizeWindow(Int32(videoStream.frame.width),
                 Int32(videoStream.frame.height))
