crop image with path