Align pixels when drawing icons or shapes

The floor before setting the transform ensures that we translate by integer pixels for odd and even dimenstions.  The round before drawing the image ensures pixels are aligned.
Merge pull request #1133 from tschaub/align-pixels

Ensure that pixels are aligned when rendering icons.