aren't you passing in the image as a buffer though?