fix build for image referenced in js