copied cropTool to sitestatic to work with dax