Modified drawRect method and shaking causes its image color