Added crop image method