[FIX]: fix an issue for the image height and width