add log for image retrival