added a card image helper method