Added support for Gallery 3.0.8 version.