Q:

How to get appropriate scaled image from graphic rectangle

I am trying to make an image out of a graphic, which is a rectangle with given size.
However, the dimension of the image do not correspond to the size given to the rectangle:
im = Image[Graphics[Rectangle[{0, 0}, {10, 20}]]];
ImageDimensions[im]

{221, 432}

Anyone knows how to do it ?

A:

Not very beautiful, but working:
 im = ImageResize[Image[Graphics[Rectangle[{0, 0}]]], {10, 20}];

