added function to return only approved images