Add heights to the image elements (for faster rendering)