Fix null error in backgroundImageForCard