addMethod to make snapshot viewcontrollers based in ios7