Implemented mac compilation

Since the compute capability is lower for my macbook pro NVIDIA card
(1.2), the code was tweaked to fit it's resource requriements.

Changes:
- Implemented Image struct (smaller memory size)
- Added Makefile condition to link to homebrew installed opencv if on
  Darwin