set height and width to imgObject due to sourceWidth error