Better texture formats handling