Adding new trim() options to be used with a frontend ui like jcrop