Added support for cordova 3, added png mimetype