Handle simple string values for dimensions.

Convert strings with integers to integers for dimensions width, height, left and
top params. For example, if the width param is "20px", convert it to 20 with
String#to_i.

Fixes #564.
merge concluded
Polishing up the PR :-)