Fixed img formatting bugs with Firefox and IE