Merged and used ternary operator bc Matt should use them too.
Merge branch 'master' of https://github.com/abhandaru/gpu-seamcarving