added flags to get different styles depending on if you have qgis 2. or qgis 1.8.