add crop image in template