Add support for memory allocation callbacks in stb_image

This patch adds a variation for each load function that accepts an allocation callback following the design of the IO callbacks.