Support all of the geometry strings

Fixes issues with more complex geometry strings (see https://github.com/jhnvz/retina_rails/issues/52).