* fixed a bug in image resizing script