fix cover image generation