fixed a resizing bug in the server caused the new height of an image to be 0