Add cropImage method