There are ways to resize the image. However,
you should note that the new image will not have a transparency background. It becomes an immutable image and if you had a transparency set before, it gets lost.
I don't remember the specific code to do this, but know that I got it here in this forum. So do a search above for "resize image" and I am sure you will find that
thread.
Mark