For sprites you can more or less ignore the power of two thing, because they get spritesheeted on to a single larger image. Since they are assembled on to a power-of-two spritesheet with a 1px border, the optimal size is actually 2^n-2, e.g. 30, 62, 126, etc.