fix firefox image resize round error