add console logs for image saving