exchange of imgHeight and imgWidth