Is there any way to set height and width of an image using jquery? The following is my code var img = new Image();