Fixed issue in TextToPicturesActivity class that was causing a crash on rotation