fix build issue with image