addes width and height to IM