title: gbitmap_create_from_png_data() fails to load image
body: <p>I am developing an app that downloads a png image from internet and displays it. For some reason gbitmap_create_from_png_data() fails to load most images with following error message:</p>
  
  <blockquote>
    <p>[ERROR] gbitmap_png.c:49: PNG memory allocation failed </p>
    
    <p>[ERROR] gbitmap_png.c:99: Failed to load PNG</p>
  </blockquote>
  
  <p>I doubt that I am out of memory. I say this because I have tried loading very small images i.e 4Kb in size and they still fail. On the other hand some images, although 16kb in size, load successfully. Other confusing thing is that the same images that fail to load using <code>gbitmap_create_from_png_data()</code> load successfully using <code>gbitmap_create_with_resource()</code> if I add them as image resources to my app. So images are correctly formated for Pebble. The downloaded images are exactly the same size as the ones I have locally so I doubt the image data gets corrupted. </p>
  
  <p>Successful image: <a href="http://brucedalemansion.com/images/baby_16.png" rel="nofollow">http://brucedalemansion.com/images/baby_16.png</a> </p>
  
  <p>Un-Successful image: <a href="http://i.imgur.com/CUJwSU7.png" rel="nofollow">http://i.imgur.com/CUJwSU7.png</a></p>