starting debugging texturing

Started debugging texturing with mixed results.
PNG loading now works (using SDL) but texture loading isn't working yet.