setting img to inline-block as setting it to block for all images breaks most website layouts