Rounded dimensions.
Fixed another nasty flickering.
Code refactoring.