Added libpng texture loading.
Cleaned up CoreGraphics texture loading.