fixed issue in which the first shared photo from Phonegap would always get shared in Instagram