Adding croping functionality