Adding ability to set dimension for generated image.