Fix empty image URL for discard pile

Use Typescript