Extract texture formats to their own module