Rewrite the constraints to try to use smallest power of 2 for height/width