Now supports all texture pixel formats