Add an option to use pixels instead of percentages
Add support for right to left direction