Fork from CLImageEditor to satisfy some requirements of Yuppiu app.