Clean up code to fetch cover image