change image in card to object