Added method to get texture pixel data