fixed firefox bug where image overflowed