SWC version improvements:
  - Fixed memory leaks
  - Returned BitmapData(null) when failed instead of crashing
  - Small speed improvement setting the pixels directly from the C's memory instead of copying to a temporal ByteArray