Use API Level 18 and add parametrized compression quality