More concise code

Instead of numbering the Size & RepeatModes and then switching on the number, why not set properties directly? Makes the code much simpler and eleganter, I think.