Added release with debug info hint.
Refactored code to use less malloc()s and pixel conversions