artwork: fixed several memory and filehandle leaks, reorganized artwork loaders for id3, flac and apev2 into separate functions with proper error handling, moved flac loader higher in priority, so that it works before attempting to load id3v2 tags from flacs