Fixed bug in imageresizer