finish rotate image   fix issue #50