crop of image now in a method