An improved cover trimming algorithm

An improved cover trimming algorithm to automatically detect and remove
borders and extra space from the edge of cover images. To try it use the
"Trim" button in the edit metadata dialog.