use CLAMP_TO_EDGE if width is not power of 2