added logging to composite image generation