Add error checking to the crop transformation arguments. Thanks to Jordan Wages (@wagesj45) for the report and investigation on the issue. Closes GitLab issue #490 Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>