added trim image BG option (imagemagick must be installed)