tutorial from http://www.techotopia.com/index.php/Basic_iOS_7_Animation_using_Core_Animation