Updated dimensions option.

Takes a string of either 'update', 'remove', 'preserve'.
Fix the condition.