added png texture support and fixed some texture issues