You can use the resizeFactor to resize the image (1 is the original size).
resizeFactor
num resizeFactor;