The png command now supports in and cm and specified units. For example, to create a 12cm by 14cm image called test.png, simply type:

png test.png, height=12cm, width=14cm