fix firefox image breaking due to floating point error? maybe?