add image flip js