determ the correct width and height of an image with missing image-w and image-h.