Changed some TextToPicturesActivity code to handle the rotation better