Comment the method to rotate image. This way consume too much memory.