Add convenience methods to compute byte size for getTexImage and readPixels automatically from format and type