set image height and width so layout doesnt jump after waiting for the image to load