Fixed image jitter when resizing on some browsers